import { NgModule } from '@angular/core';
import { CommonModule  } from '@angular/common'

import { FrameRoutingModule } from './frame-routing.module';
import { FrameComponent } from './frame/frame.component';
import { IconsProviderModule } from './icons-provider.module';
import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { NzMenuModule } from 'ng-zorro-antd/menu';
import { FormsModule,ReactiveFormsModule } from '@angular/forms';
import { NzFormModule } from 'ng-zorro-antd/form';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzSkeletonModule } from 'ng-zorro-antd/skeleton';
import { HttpClientModule } from '@angular/common/http';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { NewsComponent } from './modules/news/news.component';
import { PersonalComponent } from './modules/personal/personal.component';
import { NzTabsModule } from 'ng-zorro-antd/tabs';
import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb';
import { NzCardModule } from 'ng-zorro-antd/card';
import { NzTableModule } from 'ng-zorro-antd/table';
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
import { NzModalModule } from 'ng-zorro-antd/modal';
import { NzUploadModule } from 'ng-zorro-antd/upload';
import { NzMessageModule } from 'ng-zorro-antd/message';
import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
import { ClipboardModule } from 'ngx-clipboard'
import { SafeUriPipe } from '../core/pipes/safeUri'
import { KeyMapPipe } from '../core/pipes/keyMap'
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
import { NzSelectModule } from 'ng-zorro-antd/select';

registerLocaleData(zh);

@NgModule({
  declarations: [
    FrameComponent,
    NewsComponent,
    PersonalComponent,
    SafeUriPipe,
    KeyMapPipe
  ],
  imports: [
    CommonModule,
    FrameRoutingModule,
    IconsProviderModule,
    NzLayoutModule,
    NzMenuModule,
    FormsModule,
    HttpClientModule,
    NzFormModule,
    NzButtonModule,
    ReactiveFormsModule,
    NzIconModule,
    NzInputModule,
    NzSkeletonModule,
    NzTabsModule,
    NzBreadCrumbModule,
    NzCardModule,
    NzTableModule,
    NzDropDownModule,
    NzModalModule,
    NzUploadModule,
    NzMessageModule,
    NzPopconfirmModule,
    ClipboardModule,
    NzDatePickerModule,
    NzSelectModule
  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [FrameComponent]
})
export class FrameModule { }
